
const app = getApp()

Page({
  data: {
    user:{
      name:'驿路小站  17850555850',
      tel:'17850555850',
      address:'中国福建省厦门市翔安区马巷镇巷西五里5号1802室'
    },
    selectedResAreasIndex:0,
    resAreas:['中国福建省厦门市翔安区马巷镇巷西五里5号1802','福建福州','福建泉州'],
    summary:'￥100'
  },
  bindPickerResAreasChange: function (e) {
    this.setData({
      selectedResAreasIndex: e.detail.value
    })
  },
  //充值月数更改事件
  formInputChange(e) {
    const {field} = e.currentTarget.dataset
    this.setData({
        [`formData.${field}`]: e.detail.value
    })
}
})
